package bch.netty.handler.log;

import lombok.extern.apachecommons.CommonsLog;
import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import lombok.extern.slf4j.XSlf4j;
import org.springframework.boot.context.logging.LoggingApplicationListener;
import org.springframework.boot.logging.AbstractLoggingSystem;
import org.springframework.boot.logging.LogFile;
import org.springframework.boot.logging.LoggingInitializationContext;
import org.springframework.boot.logging.logback.LogbackLoggingSystem;

/**
 * 门面
 * 默认实现springboot
 *      {@link LoggingApplicationListener}
 *      {@link LogbackLoggingSystem}
 *      {@link AbstractLoggingSystem#loadDefaults(LoggingInitializationContext, LogFile)} 没有logback.xml/logback-spring.xml文件时加载默认配置
 * 桥接
 */
@Slf4j
public class Desc {
    public static void main(String[] args) {
        log.trace("trace");
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error("error");
    }
}
